LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

VERSION := $(shell svn info ${LOCAL_PATH} | grep "Last Changed Rev" | awk '{print $2}')

$(shell sed -i -e 's/MAT Last Changed Rev.*/MAT '"${VERSION}"'\";/g' ${LOCAL_PATH}/src/com/intel/factorytest/activity/SoftwareInfo.java)


LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_PACKAGE_NAME := FactoryTest
LOCAL_CERTIFICATE := platform
LOCAL_DEX_PREOPT:=false
include $(BUILD_PACKAGE)


#$(info cp $(LOCAL_PATH)/src/com/intel/factorytest/menuitem/mat_test_case_config $(PRODUCT_OUT)/system/etc/mat_test_case_config)
#$(shell cp "$(LOCAL_PATH)/src/com/intel/factorytest/menuitem/mat_test_case_config" "$(PRODUCT_OUT)/system/etc/mat_test_case_config") 

#include $(call all-makefiles-under,$(LOCAL_PATH))
